/*******************************************************************************
 * Venice Noise Android Application
 * Copyright (C) 2011  Worcester Polytechnic Institute, Wesley Ripley
 * 
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; version 2
 * of the License
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 * 
 * If you plan to use or modify any of this code please contact Fabio Carrera (carrera.fabio@gmail.com)
 * Also please attribute any code used in the final product to the developers. 
 * 
 * Author: Wesley Ripley (wripley@wpi.edu) 
 *******************************************************************************/
package org.venicenoise.app.location;

import android.location.Location;

/**
 * A interface defining the behavior of deciding whether
 * a new location is better than the current location
 * 
 * Part of the Strategy Pattern abstracting out the behavior of
 * picking which location is best.
 * 
 * @author Wesley Ripley
 * @version 12/16/2011
 */
public interface LocationPicker {
	
	/**
	 * Decide if the new location is better than the current one
	 * @param location
	 * 		The new location
	 * @param currentLocation
	 * 		The current location
	 * @return
	 * 		true if the new location is better, false otherwise
	 */
	public boolean isBetterLocation(Location location, Location currentLocation);
	
}
